package net.vkits.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;



/**
 * 订单
 **/

/**
 * 订单
 */
@ApiModel(description = "订单")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-27T05:49:23.577Z")

public class Order extends BaseDTO  {
  private String id = null;

  private String amount = null;

  private Boolean hasDeposit = null;

  private Boolean hasFee = null;

  private String rate = null;

  private String serviceFee = null;

  private Boolean notifyLandlord = null;

  private String landlord;

  private String createTime;

  public Order createTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * 创建时间
   * @return createTime
   **/
  @ApiModelProperty(value = "创建时间")
  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  public Order landlord(String landlord) {
    this.landlord = landlord;
    return this;
  }

  /**
   * 房东姓名
   * @return landlord
   **/
  @ApiModelProperty(value = "房东姓名")
  public String getLandlord() {
    return landlord;
  }

  public void setLandlord(String landlord) {
    this.landlord = landlord;
  }

    public Order id(String id) {
        this.id = id;
        return this;
    }

    /**
     * 订单ID
     * @return amount
     **/
    @ApiModelProperty(value = "订单ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

  public Order amount(String amount) {
    this.amount = amount;
    return this;
  }

   /**
   * 订单金额
   * @return amount
  **/
  @ApiModelProperty(value = "订单金额")
  public String getAmount() {
    return amount;
  }

  public void setAmount(String amount) {
    this.amount = amount;
  }

  public Order hasDeposit(Boolean hasDeposit) {
    this.hasDeposit = hasDeposit;
    return this;
  }

   /**
   * 包含房屋押金
   * @return hasDeposit
  **/
  @ApiModelProperty(value = "包含房屋押金")
  public Boolean getHasDeposit() {
    return hasDeposit;
  }

  public void setHasDeposit(Boolean hasDeposit) {
    this.hasDeposit = hasDeposit;
  }

  public Order hasFee(Boolean hasFee) {
    this.hasFee = hasFee;
    return this;
  }

   /**
   * 包含水电杂费
   * @return hasFee
  **/
  @ApiModelProperty(value = "包含水电杂费")
  public Boolean getHasFee() {
    return hasFee;
  }

  public void setHasFee(Boolean hasFee) {
    this.hasFee = hasFee;
  }

  public Order rate(String rate) {
    this.rate = rate;
    return this;
  }

   /**
   * 服务费率
   * @return rate
  **/
  @ApiModelProperty(value = "服务费率")
  public String getRate() {
    return rate;
  }

  public void setRate(String rate) {
    this.rate = rate;
  }

  public Order serviceFee(String serviceFee) {
    this.serviceFee = serviceFee;
    return this;
  }

   /**
   * 服务费
   * @return serviceFee
  **/
  @ApiModelProperty(value = "服务费")
  public String getServiceFee() {
    return serviceFee;
  }

  public void setServiceFee(String serviceFee) {
    this.serviceFee = serviceFee;
  }

  /**
   * 是否通知房东
   * @return notifyLandlord
   **/
  @ApiModelProperty(value = "是否通知房东")
  public Boolean getNotifyLandlord() {
    return notifyLandlord;
  }

  public void setNotifyLandlord(Boolean notifyLandlord) {
    this.notifyLandlord = notifyLandlord;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Order order = (Order) o;
    return Objects.equals(this.amount, order.amount) &&
        Objects.equals(this.hasDeposit, order.hasDeposit) &&
        Objects.equals(this.hasFee, order.hasFee) &&
        Objects.equals(this.rate, order.rate) &&
        Objects.equals(this.serviceFee, order.serviceFee) &&
        Objects.equals(this.notifyLandlord, order.notifyLandlord);
  }

  @Override
  public int hashCode() {
    return Objects.hash(amount, hasDeposit, hasFee, rate, serviceFee, notifyLandlord);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Order {\n");

    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    hasDeposit: ").append(toIndentedString(hasDeposit)).append("\n");
    sb.append("    hasFee: ").append(toIndentedString(hasFee)).append("\n");
    sb.append("    rate: ").append(toIndentedString(rate)).append("\n");
    sb.append("    serviceFee: ").append(toIndentedString(serviceFee)).append("\n");
    sb.append("    notifyLandlord: ").append(toIndentedString(notifyLandlord)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

